/********************************************************************************
 *      Copyright:  (C) 2022 xiezongyi<1764417007@qq.com>
 *                  All rights reserved.
 *
 *       Filename:  mosquitto_callback_sub.h
 *    Description:  This head file 
 *
 *        Version:  1.0.0(09/05/22)
 *         Author:  xiezongyi <1764417007@qq.com>
 *      ChangeLog:  1, Release initial version on "09/05/22 11:11:48"
 *                 
 ********************************************************************************/

#ifndef _MOSQUITTO_CALLBACK_SUB_H_
#define _MOSQUITTO_CALLBACK_SUB_H_

void on_connect_sub(struct mosquitto *mosq, void *obj, int rc);

void on_disconnect_sub(struct mosquitto *mosq, void *obj, int rc);

void on_subscribe(struct mosquitto *mosq, void *obj, int mid, int qos_count, const int *granted_qos);

void on_message_sub(struct mosquitto *mosq, void *obj, const struct mosquitto_message *message);

#endif

